package com.lx.oms.controller.manager;

import java.math.BigInteger;
import java.util.List;

import com.lx.oms.common.entity.Query;
import com.lx.oms.controller.entity.SupplyCategoryEntity;

/**
 * 黄页分类
 *
 * @author houzhong
 * @date 2018年11月22日 上午10:10:19
 */
public interface SupplyCategoryManager {
	
	List<SupplyCategoryEntity> listCategoryByParentId(Query query);

	int saveSupplyCategory(SupplyCategoryEntity supplyCategory);
	
	SupplyCategoryEntity getSupplyCategoryById(BigInteger id);
	
	int updateSupplyCategory(SupplyCategoryEntity supplyCategory);
	
	int batchRemove(String[] id);
	
	boolean hasChildren(String[] id);
	
	SupplyCategoryEntity getCategoryByName(Query query);
	
	List<SupplyCategoryEntity> getCategoryByParentId(Query query);
	
}
